package com.atguigu;

import com.atguigu.bean.MyMathCalculator;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 伟哥
 * @date 2021-05-01 20:21
 */
public class testXML {
    ApplicationContext ioc = new ClassPathXmlApplicationContext("applicationContext.xml");

    @Test
    public void testXML(){
        MyMathCalculator bean = ioc.getBean(MyMathCalculator.class);

        bean.add(1,2);
        System.out.println("============");
        bean.div(2,0);
    }
}
